const path = require('path')
const fs = require('fs-extra')

module.exports = (app) => {
  const { baseDir } = app

  const jaxCommonPath = path.join(baseDir, 'node_modules/jax/index.js')

  console.log('jaxCommonPath', jaxCommonPath)

  if (!fs.existsSync(jaxCommonPath)) fs.outputFileSync(jaxCommonPath, `module.exports = require('../../jax-egg');`)
}
